package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;
import com.itheima.reggie.domain.SetmealDish;

import java.util.List;

public interface SetmealService {
    //分页查询套餐
    Page<Setmeal> findByPage(Integer pageNum, Integer pageSize, String name);

    //新增保存套餐
    void save(Setmeal setmeal);

    //启售/停售 (批量)
    void updateStatus(Integer status, Long[] ids);

    //删除套餐  (批量)
    void deleteByIds(Long[] ids);

    //回显套餐
    Setmeal findById(Long id);

    //修改套餐
    void update(Setmeal setmeal);

    //查询在售套餐
    List<Setmeal> findDishOnSale(Long categoryId, Integer status);

    //查看在售套餐具体菜品信息
    List<SetmealDish> findByIdBrief(Long id);
}
